import Taro from '@tarojs/taro'
import React from 'react'
import {View, Text, Radio,RadioGroup} from '@tarojs/components'
import './choicePerson.scss'

function Choice() {

  let addPerson = ()=>{
    Taro.navigateTo({
      url: '/pages/YXX/addPerson/addPerson'
    })
  };

  let sure = ()=>{
    Taro.navigateTo({
      url: '/pages/YXX/finishPay/finishPay'
    })
  }

  return (
    <View className='reserve_container'>
    <RadioGroup>
      <View className='list'>
        <View className='name'>
          <Text>小鱼</Text>
          <Text className='phone'>12345678901</Text>
          <View className='default'>默认</View>
        </View>
        <View>
          <Radio checked> </Radio>
        </View>
      </View>
      <View className='list' id='white'>
        <View className='name'>
          <Text>小鱼</Text>
          <Text className='phone'>12345678901</Text>
        </View>
        <View>
              <Radio />
        </View>
      </View>
      <View className='btn' onClick={addPerson}>
        <button type='default' className='addPersonBtn'>添加体检人</button>
      </View>
      {/*按钮*/}
      <View className='sure_btn' onClick={sure}>
        <View>
          <Text>选择</Text>
        </View>
      </View>
    </RadioGroup>
    </View>
  )
}

export default Choice
